package cn.jinjie.day09;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;

public class Test03 {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("aaa");
        coll.add("bbb");
        coll.add("cc");
        coll.add("ddd");
        coll.forEach(s -> System.out.println(s));

        Map<String, String> map = new HashMap<>();
        map.put("001", "坏数字");
        map.put("002", "好数字");
        map.put("003", "黑马树哥");
        map.put("004", "黑马树哥1");
        map.forEach(((s, s2) -> System.out.println(s + "===" + s2)));
    }
}
